package com.rfsp.mcp.controller.base;

import com.rfsp.common.log.TrcMsg;
import com.rfsp.mcp.pojo.vo.BankVO;
import com.rfsp.mcp.service.BankService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller("BaseBankController")
@RequestMapping("/base/bank")
public class BaseBankController {
    public Logger logger = LoggerFactory.getLogger(BaseAuthController.class);

    @Autowired
    private BankService service;

    @GetMapping("/detail")
    public String detail(ModelMap model, Long id, String aid) {
        logger.info(TrcMsg.getMsg(TrcMsg.METHOD_BEGIN, "detail"));
        BankVO vo=service.getById(id);
        service.combo(vo);
        model.put("vo",vo);
        logger.info(TrcMsg.getMsg(TrcMsg.METHOD_END, "detail"));
        return "base/bank/detail";
    }
}
